package com.gateway.security.common.token;

import java.io.Serial;

/**
 * @program: api-gateway
 * @description:
 * @author: YuKai Fan
 * @create: 2025/2/12 15:29
 **/
public class DefaultSecurityToken implements SecurityToken {
    @Serial
    private static final long serialVersionUID = 533541628113097245L;

    private final String token;


    private final String paramType;

    private final String parameterName;

    public DefaultSecurityToken(String token, String paramType, String parameterName) {
        this.token = token;
        this.paramType = paramType;
        this.parameterName = parameterName;
    }

    @Override
    public String getParameterName() {
        return parameterName;
    }

    @Override
    public String getParamType() {
        return paramType;
    }

    @Override
    public String getToken() {
        return token;
    }

    @Override
    public String toString() {
        return token;
    }
}
